<?php
/**
 * Created by PhpStorm.
 * User: cy
 * Date: 18-4-26
 * Time: 上午4:25
 */

interface Lock
{
    const EXPIRE = 600;//锁自动失效时间
    public function getLock($key, $timeout=self::EXPIRE);//获得锁
    public function releaseLock($key);//释放锁
}